package holiday_demo.objectFunctionUse.demo02Equals;

public class Demo02Equals {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Demo02Equals() {
    }

    public Demo02Equals(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        //
        Demo02Equals de1=new Demo02Equals("小明");
        Demo02Equals de2=new Demo02Equals("小明");
        System.out.println(de1.equals(de2));

    }
}
